
/*

Author   : chaos

FileName : ret_int_a.cpp

Date     : 09/08/17 16:18:42

*/
#include <iostream>
using namespace std;

void  fun(int *);

int main(int argc ,char *argv[])
{
    int * ptr = new int(0);

    fun(ptr);

    cout <<"*ptr=" << *ptr << endl;

    delete ptr;// run rom is not efficent

    return 0;
}


void  fun(int *a){

    *a = 9;

}
